/*
 * @ProjectName: flutter_common
 * @Package: 
 * @ClassName: audit_api.dart
 * @Description:审核页面接口
 * @User: Page.Su
 * @Date: 2020/8/28
 * @Time: 12:23
 * @UpdateDate: 2020/8/28 12:23
 */

import 'package:flutter_su/common/request.dart';
import 'package:flutter_su/config/url_path.dart';
import 'package:flutter_su/model/country_list_model.dart';
import 'package:flutter_su/services/base_api.dart';

class AuditApi with BaseApi {

  // 获取国家列表
  Future<CountryListModel> getCountryList() async {
    String path = UrlPath.countryList;
    DioResponseModel dioResponseModel = await Request().get(path);
    if (dioResponseModel.success == SuccessType.unSuccess) {
      return nullModel;
    }
    var model = checkToModel<CountryListModel>(
        obj: CountryListModel(), map: dioResponseModel.toJson);
    return model;
  }
}
